package com.akuhome.resource.DO.check.use;

import java.sql.Timestamp;
import java.util.Objects;

public class ClassroomUse {
    Integer id;
    String name;
    //使用次数
    String times;
    Timestamp createTime;
    Timestamp updateTime;
    Integer classroomCheckId;

    public ClassroomUse() {
    }

    public ClassroomUse(String name, String times) {
        this.name = name;
        this.times = times;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getClassroomCheckId() {
        return classroomCheckId;
    }

    public void setClassroomCheckId(Integer classroomCheckId) {
        this.classroomCheckId = classroomCheckId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassroomUse that = (ClassroomUse) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(times, that.times);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, times);
    }
}
